<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>confirm shipment</title>
<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/js/jquery-ui-1.8.21.custom.min.js"></script>
<script type="text/javascript" src="/js/jquery.leanModal.min.js"></script>
<link type="text/css" href="/css/start/jquery-ui-1.8.21.custom.css" rel="Stylesheet" />	
<script language="javascript">
$(function() {
	$( "#shipDate" ).datepicker({ dateFormat: "yy-mm-dd",firstDay: 1 });
});

function check(){
	var orderNo = $('#order_no').attr('value');
	var trackNo = $('#track_no').attr('value');
	var shipDate = $('#shipDate').attr('value');
	if(orderNo.length > 1 && trackNo.length >1 && shipDate.length > 1){
		$('#button').prop('disabled', false);
	}else{
		$('#button').prop('disabled', true);
	}
}

function addTr(){
	var transfer = $('#select').attr('value');
	if(transfer == 'other'){
		
	}
}
</script>

</head>

<body>
<h1>Confirm Shipment<br />
清单检查完毕，确认运出 </h1>
<form id="form1" name="form1" method="post" action="/order/order-wizard-inchina-shipped-export" 
enctype="multipart/form-data">
<table width="800" border="1" cellspacing="0" cellpadding="10">
  <tr>
  	<th scope="col">澳洲订单号</th>
    <th scope="col">货运跟踪号</th>
    <th scope="col">货运公司（添加+）</th>
    <th scope="col">发货日期</th>
  </tr>
  <tr>
    <td><input type="text" name="order_no" id = "order_no" value = "<?php echo $this->orderNo;?>" onchange = "check()"/></td>
    <td><input type="text" name="track_no" id="track_no" onchange = "check()"/></td>
    <td align="center">
      <select name="name_courier" id="select">
      	<option value = 'DHL'>DHL</option>

      </select>
    </td>
    <td align="center">
    	<input type = "text" name = "shipDate"  id = "shipDate" onchange = "check()"/>
    </td>
  </tr>
</table>
<br />

  <input type="submit" name="button" id="button" value="添加跟踪号，开始导出文件 | Add Tracking No, Export File" disabled/>
</form>
</body>
</html>
